package com.ntschy.common.core.entity.dataobject;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ntschy.common.core.BaseEntity;
import com.ntschy.common.core.entity.enums.SysCategoryEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Author: Ezreal_geng
 * @Description: 单位
 * @Date:Create：2020-11-13 20:18
 * @Modified By：
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@TableName("SYS_COMPANY")
@ApiModel(description = "单位实体类")
public class SysCompany extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "单位ID")
    @TableId
    private String id;

    @ApiModelProperty(value = "单位名称")
    @TableField(value = "Name")
    private String name;

    @TableField("Category")
    @ApiModelProperty(value = "类别 （0系统建设方 1施工单位 2监理单位 3巡检单位 4养护单位")
    private SysCategoryEnum category;

    @ApiModelProperty(value = "组别ID")
    @TableField(value = "GroupID")
    private String groupId;

    @ApiModelProperty(value = "组别名称")
    @TableField(value = "GroupName")
    private String groupName;

    @ApiModelProperty(value = "联系人")
    @TableField(value = "LinkMan")
    private String linkMan;

    @ApiModelProperty(value = "联系电话")
    @TableField(value = "LinkPhone")
    private String linkPhone;

    @ApiModelProperty(value = "是否监控对象(0否 1否是)")
    @TableField(value = "MonitorObject")
    private Integer monitorObject;

    @ApiModelProperty(value = "资质日期")
    @TableField(value = "Qualification")
    private String qualification;

    @ApiModelProperty(value = "安全许可证")
    @TableField(value = "SafetyPermit")
    private String safetyPermit;

    @ApiModelProperty(value = "备注")
    @TableField(value = "Remark")
    private String remark;

    @TableField(fill = FieldFill.INSERT, value = "CreateTime")
    private String createTime;


}
